#ifndef WORKER_H
#define WORKER_H

#include"threadPool.h"
#include"logger.h"
#include"task.h"
#include"recv.h"
#include"mysql.h"
#include"epoll.h"
#include"passwd.h"
#include"epoll.h"


//创建线程
int workerInit(threadPool_t* pool, int workerNum);
//获取当前路径
int get_current_path(MysqlPool_t *mysqlpool, char *path, int pre_path, char username[]);
//线程处理工作
int doWorker(threadPool_t* pool);
//处理ls命令
int deal_ls(int netfd,MysqlPool_t* mysqlpool);
//退出命令
int deal_quit(int epfd, int netfd,MysqlPool_t* mysqlpool);
//处理put命令
int deal_put(int netfd,char *filename,MysqlPool_t* mysqlpool);











#endif